package com.zhangxu.basemvp.contract;

import com.zhangxu.basemvp.bean.UserBean;
import com.zhangxu.basemvp.base.BaseView;

import java.util.HashMap;

/**
 * Time:2019/4/10
 * Author:zhangxu
 */
public interface LoginContract {
    interface Model  {
        void login(HashMap map, Presenter loginPresenter);
    }

    interface View extends BaseView {
        String getUserName();

        String getPassWord();

        void loginSuccess(UserBean user);
    }

    interface Presenter {
        void onSuccess(UserBean user);//登陆成功

        void onfail(String msg);//登陆失败
    }
}
